package cn.com.pinche.service.user.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import cn.com.pinche.dao.user.impl.UserDaoImpl;
import cn.com.pinche.po.User;
import cn.com.pinche.service.user.UserService;

public class UserServiceImpl implements UserService {

	@Autowired
	private UserDaoImpl dao;
	
	public boolean deleteUser(String id) {
		return dao.deleteUser(id);
	}

	public List<User> findAllUser() {
		return dao.findAllUser();
	}

	public boolean saveUser(User user) {
		return dao.saveUser(user);
	}

	public User updateUser(User user) {
		return dao.updateUser(user);
	}
	
	public User getUserInfo(String userId) {
		return dao.getUserInfo(userId);
	}
}
